import request from '@/utils/request'
/**
 * 发送验证码
 * @param params 
 * @returns 
 */
export const sent = (params?: any) => {
  return request({
    url: '/captcha/sent',
    method: 'get',
    params
  })
}

/**
 * 验证验证码
 * @param params 
 * @returns 
 */
 export const verify = (params?: any) => {
  return request({
    url: '/captcha/verify',
    method: 'get',
    params
  })
}

/**
 * 注册(修改密码)
 * @param params 
 * @returns
 */
 export const cellphone = (params?: any) => {
  return request({
    url: '/register/cellphone',
    method: 'get',
    params
  })
}

/**
 * 检测手机号码是否已注册
 * @param params 
 * @returns 
 */
 export const check = (params?: any) => {
  return request({
    url: '/cellphone/existence/check',
    method: 'get',
    params
  })
}